runtime.cleanupQueue.workUnits (field)
7 uses
runtime (current package)
mcleanup.go#L368: workUnits atomic.Uint64 // length of full; decrement before pop from full, increment after push to full
mcleanup.go#L440: q.workUnits.Add(int64(n))
mcleanup.go#L447: wu := q.workUnits.Load()
mcleanup.go#L452: if q.workUnits.CompareAndSwap(wu, wu-1) {
mcleanup.go#L515: if q.workUnits.Load() > 0 {
mcleanup.go#L589: return q.workUnits.Load() > 0 && (q.asleep.Load() > 0 || q.ng.Load() < maxCleanupGs())
mcleanup.go#L601: work := q.workUnits.Load()
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |